$(function(){
	showContentTip();
	readUname();
	loadWelcome();
});
function loadWelcome(){
	$("#mainFrame").load("welcome.html");
}
function showContentTip(){
	layer.open({
		type:0,
		title:"系统提示",
		area:'auto',
		icon:1,
		/*btn:["知道了"],
		btnAlign:'r',
		btnClose:1,*/
		time:2000,
		anim:2,
		
		content:"欢迎"+sessionStorage.getItem("uname")+"登录"
	});
}

function readUname(){
	var uname = sessionStorage.getItem("uname");
	$("#uname").html(uname);
}
function loadPersonCenter(){
	$("#mainFrame").load("index.html");
}
function loadPaintAssetManage(){
	$("#mainFrame").load("assetTransferManage/paintAssetManage.html");
}
function loadCarAssetManage(){
	$("#mainFrame").load("assetTransferManage/carAssetManage.html");
}
function loadDataDict(){
	$("#mainFrame").load("baseInfoManage/dataDictionaryManage.html");
}
function loadsysMoney(){
	$("#mainFrame").load("baseInfoManage/sysMoney.html");
}
function loadCompanyEmployee(){
	$("#mainFrame").load("baseInfoManage/CompanyEmployee.html");
}
function loadSystemUser(){
	$("#mainFrame").load("baseInfoManage/SystemUser.html");
}
function loadPaintAssetInfo(){
	$("#mainFrame").load("assetInfoManage/paintAssetInfo.html");
}
function loadMoneyAssetInfo(){
	$("#mainFrame").load("assetInfoManage/moneyAssetInfo.html");
}
function loadCarAssetInfo(){
	$("#mainFrame").load("assetInfoManage/carAssetInfo.html");
}
function loadHouseAssetInfo(){
	$("#mainFrame").load("assetInfoManage/houseAssetInfo.html");
}
function sysExit(){
	layer.confirm("是否确认退出系统？",{
		btn:["确定","取消"],
		icon:3,
		btnAlign:"c",
		shade:.3,
		anim:6
	},function(){
		window.location.href="login.html";
	});
}
function drawer(){
	layer.open({
		type:2,
		title:"修改密码",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['500px','300px'],
		content:["modifyUpwd.html","no"],
		btn:["确定"],
		yes:function(){
			layer.msg("密码修改成功！",{
				icon:1
			});
		}
	});
}

